package com.breaktian.demoapp.ui.jetpack.viewmodel;

import com.alibaba.fastjson.TypeReference;
import com.breaktian.assemble.utils.LogUtil;
import com.breaktian.demoapp.ui.fragment.IndexFragment;
import com.breaktian.demoapp.utils.ToastUtils;
import com.breaktian.network.api.finance.ApiCallback;
import com.breaktian.network.api.finance.ApiResult;
import com.breaktian.network.api.finance.BaseFinaceApi;
import com.breaktian.network.http.Http;
import com.google.gson.Gson;

public class TestApi extends BaseFinaceApi {
    public void getBean(String url,ApiCallback<TestViewModel.Bean> callback){
        Http http = Http.get(url);
        ApiResult<TestViewModel.Bean> cache = request(http, new TypeReference<ApiResult<TestViewModel.Bean>>() {
        }, callback);

    }

}
